package com.inool.service;

import com.inool.model.SysMenu;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.inool.vo.AssignMenuVo;
import com.inool.vo.RouterVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 5unkzh1
 * @since 2024-02-04
 */
public interface SysMenuService extends IService<SysMenu> {

    List<SysMenu> findSysMenu();
    List<SysMenu> findNodes();

    boolean removeMenuById(String id);

    List<SysMenu> findSysMenuByRoleCode(String roleCode);


    List<RouterVo> findUserMenuList(Long userId);

    void doAssign(AssignMenuVo assignMenuVo);

    //List<String> findUserPerms(Long userId);

    IPage<SysMenu> pageSysMenu(IPage<SysMenu> page);
}
